import fetch from '@/utils/fetch'

// 库存信息获取
export function apiGetStockCount (listQuery) {
  return fetch({
    url: '/api/v1/chart/stock',
    method: 'get',
    params: listQuery
  })
}
// 网点维修数据获取
export function apiGetRepairPointCount (listQuery) {
  return fetch({
    url: '/api/v1/chart/repair/point',
    method: 'get',
    params: listQuery
  })
}

// 一返三返维修数据获取
export function apiGetOTRepairCount (listQuery) {
  return fetch({
    url: '/api/v1/chart/repair/time',
    method: 'get',
    params: listQuery
  })
}

// 返厂维修数据获取
export function apiGetFactoryRepairCount (listQuery) {
  return fetch({
    url: '/api/v1/chart/repair/factory',
    method: 'get',
    params: listQuery
  })
}

// 获取所有省份
export function apiGetProvinceList (listQuery) {
  return fetch({
    url: '/api/v1/dictionary/address/province',
    method: 'get',
    params: listQuery
  })
}

// 获取所有型号
export function apiGetModelList (listQuery) {
  return fetch({
    url: '/api/v1/dictionary/model/all',
    method: 'get',
    params: listQuery
  })
}

// 获取所有工厂
export function apiGetFactoryList (listQuery) {
  return fetch({
    url: '/api/v1/dictionary/factory/all',
    method: 'get',
    params: listQuery
  })
}
